package com.dylovedz.javafxphone.domain;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@EntityListeners(value = AuditingEntityListener.class)
@Data
@Table(name = "wechat_app")
public class WechatApp implements Serializable {


    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * AppID
     */
    @Column(name = "app_id")
    private String appId;

    /**
     * AppSecret
     */
    @Column(name = "app_secret")
    private String appSecret;

    /**
     * 创建时间
     */
    @CreatedDate
    @Column(name = "create_time", updatable = false)
    private String createTime;

    /**
     * 更新时间
     */
    @LastModifiedDate
    @Column(name = "update_time")
    private String updateTime;
}
